package com.slofzx.nuoda.evaluation.project.controller;

import com.slofzx.nuoda.common.vo.AjaxResultVO;
import com.slofzx.nuoda.evaluation.project.service.IndexService;
import com.slofzx.nuoda.evaluation.project.vo.IndexCountVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/project/index")
public class IndexController {
    @Autowired
    private IndexService indexService;

    /**
     * 总体分析数据接口
     * @return
     */
    @RequestMapping("/overall")
    public AjaxResultVO<List<IndexCountVO>> queryOverallInfo(){
        final List<IndexCountVO> indexCountVOS = indexService.queryOverallInfo();
        return AjaxResultVO.newSuccessResult(indexCountVOS);
    }


}
